Linux webm002.cluster126.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
/
home
/
ariannadhf
/
www
/
wp-content
/
plugins
/
simple-sitemap
/
api
/
classes
/
/home/ariannadhf/www/wp-content/plugins/simple-sitemap/api/classes/compatibility.php
<?php namespace WPGO_Plugins\Plugin_Framework; /* * Class will address issues appearing because of other plugins and themes, * and help our plugin to become compatible with them. */ class Compatibility_FW { protected $module_roots; private $custom_plugin_data; /* Class constructor. */ public function __construct($module_roots, $plugin_data, $custom_plugin_data, $utility) { $this->module_roots = $module_roots; $this->custom_plugin_data = $custom_plugin_data; //to remove the meta box for a specific CPT when GP theme is installed add_action( 'add_meta_boxes', array( &$this, 'remove_layout_meta_box'), 999 ); } //remove the generatepress theme metabox public function remove_layout_meta_box() { remove_meta_box('generate_layout_options_meta_box', $this->custom_plugin_data->cpt_slug, 'side'); } } ?>